from os import linesep

def joinLines(lines):
   return linesep.join(filter(lambda x: x is not None, lines)) 
